package com.charlie.meetingmanagement.service;

import com.charlie.meetingmanagement.pojo.dto.UpdateRoleRequest;
import com.charlie.meetingmanagement.pojo.po.PageBean;
import com.charlie.meetingmanagement.pojo.po.Result;
import com.charlie.meetingmanagement.pojo.po.User;
import java.util.List;

public interface UserService {

    List<User> select();

    PageBean page(Integer page, Integer pageSize,Integer userId ,String userName, Integer userAge, String userTel,
                  String userEmail, Integer userRoleA, Integer userRoleC, Integer userSuperAdmin, Integer userRoleB);

    Result register(User user);

    Result update(User user);

    Result delete(Integer userId);

    boolean adminLogin(Integer userId, String userPassword);

    Result banById(Integer userId, Integer isBanned);

    Result getById(Integer userId);
    User getByUsername(String userName);
    Boolean updatePassword(  Integer userId,String oldPassword,String newPassword);

    Result updateRole(UpdateRoleRequest updateRoleRequest);
}
